package jsp;
/*
 * 一个servlet处理多个请求
 */

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class Action extends HttpServlet {
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		String uri=request.getRequestURI();
		String path=uri.substring(uri.lastIndexOf("/"), uri.lastIndexOf("."));
		if(path.equals("/doOne")){
			
		}else if(path.equals("/doTwo")){
			
		}else{
			
		}
	}

}
